import $http from '@/utils/httpRequest'

export function list(params) {
  return $http({
    url: '/sys/menu/list',
    method: 'get',
    params: $http.adornParams(params)
  })
}

export function remove(data) {
  return $http({
    url: '/sys/menu/delete',
    method: 'post',
    data: $http.adornData(data)
  })
}

export function getById(id, params) {
  return request({
    url: `/sys/menu/info/${id}`,
    method: 'get',
    params: $http.adornParams(params)
  })
}
